package com.sinmore.yigan;

import android.content.Intent;
import android.support.v4.content.ContextCompat;
import android.view.View;

import com.hazz.baselibs.base.BaseMvpActivity;

import java.util.ArrayList;
import java.util.List;

public class MainActivity extends BaseMvpActivity<MainPresenter> implements MainContract.View {


    private StepView stepView;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_ranking_all_layout;
    }

    @Override
    protected void getIntent(Intent intent) {

    }

    @Override
    protected void initView() {
        stepView = findViewById(R.id.stepview);
        List list0 = new ArrayList<>();
        list0.add("3");
        list0.add("季军");
        list0.add("季军");
        list0.add("季军");
        List list1 = new ArrayList<>();
        list1.add("可乐一瓶\n(同等饮料)");
        list1.add("100元");
        list1.add("300元");
        list1.add("500元");
        stepView.setStepsViewIndicatorComplectingPosition(2)//设置完成的步数
                .setStepViewTexts(list0)//总步骤
                .setBottomTexts(list1)
                .setStepsViewIndicatorCompletedLineColor(ContextCompat.getColor(getBaseContext(), R.color.color_FFD845))//设置StepsViewIndicator完成线的颜色
                .setStepsViewIndicatorUnCompletedLineColor(ContextCompat.getColor(getBaseContext(), R.color.colorfff))//设置StepsViewIndicator未完成线的颜色
                .setStepsViewIndicatorCompleteIcon(ContextCompat.getDrawable(getBaseContext(), R.drawable.yellow_bg))//设置StepsViewIndicator CompleteIcon
                .setStepsViewIndicatorDefaultIcon(ContextCompat.getDrawable(getBaseContext(), R.drawable.gray_bg))//设置StepsViewIndicator DefaultIcon
                .setStepsViewIndicatorAttentionIcon(ContextCompat.getDrawable(getBaseContext(), R.drawable.yellow_bg));//设置StepsViewIndicator AttentionIcon
    }

    @Override
    protected void initListener() {

    }

    @Override
    protected void initData() {

    }

    @Override
    protected MainPresenter createPresenter() {
        return null;
    }

    @Override
    public void showData(List<String> testNews) {

    }

    @Override
    public void showError(String msg) {

    }
}
